<template>
  <div id="app">
    <father></father>
    <check-box :citySel.sync = 'citys'></check-box>
    <div>
      选中结果展示
      <li v-for="city in citys">
        {{city}}
      </li>
    </div>
  </div>
</template>

<script>
import father from "@/components/father";
import Father from "@/components/father";
import CheckBox from "./components/CheckBox";
export default {
  name: 'App',
  components: {Father,CheckBox},
  comments: {
    father
  },
  data() {
      return {
        title: '王书亮',
        desc: '王书亮哈哈哈哈哈',
        citys: []
      }
  },
  computed:{
    countwsl: function (){
      return this.$store.state.count
    }
  },
  methods: {
    add() {
      this.$store.commit('increment')
      console.log(this.$store.state.count)
    }
  }
}
</script>

